package com.jia.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;


/**
 * @author 1038940655
 * @create 2021/1/13 17:55
 */
//启动类
@SpringBootApplication
@EnableEurekaClient//开启这个和Server对应，自动注册到eureka服务中去了
//@ComponentScan("com.jia.springcloud.dao")//不知道为啥非要加这个dao接口的bean才能spring扫描到
@EnableDiscoveryClient//发现微服务
public class DeptProvider_8002 {
    public static void main(String[] args) {
        SpringApplication.run(DeptProvider_8002.class,args);
    }
}
